package ace.module.captcha.core.impl.controller.rest.rpc;

import ace.cmp.security.oauth2.resource.server.core.annotation.PreAuthorizeIsInternalClient;
import ace.module.captcha.api.CaptchaImageApi;
import ace.module.captcha.sdk.core.feign.impl.CaptchaImageFeign;
import ace.module.common.api.annotation.ApiRemoteImplementPriority;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.experimental.Delegate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * rpc 入口.
 * @author Caspar
 */
@Tag(name = "图形验证码-RPC-API")
@AllArgsConstructor
@RestController
@RequestMapping(CaptchaImageFeign.PATH)
@PreAuthorizeIsInternalClient
@ApiRemoteImplementPriority
public class CaptchaImageRpcController implements CaptchaImageFeign {

  @Delegate
  private final CaptchaImageApi captchaImageApi;

}
